package net.dgg.rz.production.dao;


import net.dgg.rz.production.entity.ProductTimeStatus;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ProductTimeStatusDao {
    int deleteByPrimaryKey(Long id);
    
    int insertSelective(ProductTimeStatus record);

    ProductTimeStatus selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProductTimeStatus record);

    int updateByPrimaryKey(ProductTimeStatus record);

    /**
    * <p>@Description 查询超期</p>
    * <p>@author mqy</p>
    * <p>@Time 2018/8/15 0015 11:47 创建时间</p>
    * <p>@return</p>
    */
    List<ProductTimeStatus> query(Map map);

    /**
    * <p>@Description 工作台数量统计相关</p>
    * <p>@author mqy</p>
    * <p>@Time 2018/9/6 0006 14:08 创建时间</p>
    * <p>@return</p>
    */
    Integer productTimeStatusCount(Map map);

    int updateTimeOutStatus(ProductTimeStatus record);

}